package com.meilai.project.vo.business.media;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author 杨凯博
 * @date 2022/2/13
 */


@Data
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ApiModel(value="返回对象-点位-楼层", description="返回对象-点位-楼层")
public class MediaPointFloorVO implements Comparable<MediaPointFloorVO>{
    @ApiModelProperty("楼层号")
    private String floorName;

    @JsonIgnore
    @ApiModelProperty("楼层号-数字排序")
    private Integer floor_number;

    @ApiModelProperty(value = "点位-点位详情集合")
    private List<MediaPointVO> pointInformationList;

    @Override
    public int compareTo(MediaPointFloorVO o) {
        return this.floor_number - o.floor_number;
    }
}
